Related Vulnerabilities: CVE-2021-28153  

An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)

Severity Low

Remote No

Type Arbitrary file upload

Description

An issue was discovered in GNOME GLib before 2.66.8. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION to replace a path that is a dangling symlink, it incorrectly also creates the target of the symlink as an empty file, which could conceivably have security relevance if the symlink is attacker-controlled. (If the path is a symlink to a file that already exists, then the contents of that file correctly remain unchanged.)

AVG-1680 glib2 2.66.7-1 Low Vulnerable

https://gitlab.gnome.org/GNOME/glib/-/issues/2325
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1981
https://gitlab.gnome.org/GNOME/glib/-/commit/317b3b587058a05dca95d56dac26568c5b098d33